package com.bstek.uflo.console.component;

import com.bstek.dorado.annotation.ClientObject;
import com.bstek.dorado.annotation.ClientProperty;
import com.bstek.dorado.annotation.IdeProperty;
import com.bstek.dorado.annotation.XmlNode;
import com.bstek.dorado.view.annotation.Widget;
import com.bstek.dorado.view.widget.Control;

/**
 * @author Jake.Wang@bstek.com
 * @since Sep 11, 2013
 *
 */
@Widget(name = "UfloProcessDiagram", category = "UFLO", dependsPackage = "online-workflow-diagram", autoGenerateId = false)
@XmlNode(nodeName = "UfloProcessDiagram")
@ClientObject(prototype = "dorado.widget.UfloProcessDiagram", shortTypeName = "UfloProcessDiagram")
public class UfloProcessDiagram extends Control {
	private ParameterType requestParameterType = ParameterType.processId;
	private String requestParameterValue;
	private String iframeId;
	
	@ClientProperty(escapeValue = "processId")
	@IdeProperty(highlight = 1)
	public ParameterType getRequestParameterType() {
		return requestParameterType;
	}
	public void setRequestParameterType(ParameterType requestParameterType) {
		this.requestParameterType = requestParameterType;
	}
	
	@ClientProperty
	@IdeProperty(highlight = 1)
	public String getRequestParameterValue() {
		return requestParameterValue;
	}
	public void setRequestParameterValue(String requestParameterValue) {
		this.requestParameterValue = requestParameterValue;
	}
	
	@ClientProperty
	@IdeProperty(highlight = 1)
	public String getIframeId() {
		return iframeId;
	}
	public void setIframeId(String iframeId) {
		this.iframeId = iframeId;
	}
}
